package create.single;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/12
 * @VERSION 1.0
 * @DESC
 */
public class SafeLazySingleton {
    static private SafeLazySingleton instance = null;
    private SafeLazySingleton() {
    }
    static synchronized SafeLazySingleton getInstance(){
        if(instance==null){
            instance=new SafeLazySingleton();
        }
        return instance;
    }

}
